
#include "dominion.h"
#include <stdio.h>
#include "rngs.h"
#include <assert.h>
#include <stdlib.h>
#include <math.h>

int main(int argc, char** argv){
    struct gameState GameS;

    int k[10] = {adventurer, gardens, embargo, village, minion, mine, cutpurse,
        sea_hag, baron, great_hall};
	int c;
	int numPlayers = 2;
	int seed = 1000;
	int drawnTreasure = rand() % 2;
	


	int numActions = rand() % 4;
	int i=0;
	int cardnum;
	int treasure1;
	int treasure2;
	
	while(i< 50){
	c =initializeGame(numPlayers, k, seed, &GameS);
	//random tester:
	randhand(&GameS);
	cardnum= cardn(&GameS);
	
	cardEffect(adventurer,0,0,0,&GameS,0,0);
	//last two cards
	treasure1= card1(&GameS);
	treasure2=card2(&GameS);

	assert(treasure1>=copper);
	assert(treasure1<=gold);
	assert(treasure2>=copper);
	assert(treasure2<=gold);
	assert(cardnum=cardn(&GameS)-2);	
	i++;
	}
	printf("pass the test!\n");

}
